home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 029a / lf20.zip / LF20.DOC < prev   
Text File  |  1991-12-02  |  4KB  |  109 lines

  1.  
  2. Program:   LineFix Package
  3.            CHR10.EXE v1.0
  4.            CHR13.EXE v1.0
  5. Version:   This is version 2.0 of the package           
  6. Author:    George Spafford
  7. Date:      December 2, 1991     
  8.  
  9. Purpose:
  10.  
  11. To quickly repair CR/LF line delimitters.  Often times, mainframes,
  12. or what have you, will leave out either the ASCII 10 or ASCII 13 at the
  13. end of a line.  This wreaks havoc with many importation programs.
  14. This set of programs will insert the necessary character.
  15.  
  16. Procedure:
  17.  
  18. There are two files to this package:
  19.  
  20.       CHR10.EXE         Repairs missing ASCII 13 characters.
  21.                         (This assumes that the ASCII 10 is currently present
  22.                          in the source file.)
  23.                          
  24.       CHR13.EXE         Repairs missing ASCII 10 characters.
  25.                         (This assumes that the ASCII 13 is currently present
  26.                          in the source file.)
  27.                          
  28. The usage for both programs is:
  29.  
  30.       CHR10 source target
  31.       CHR13 source target
  32.       
  33.       Source    This is your master file.
  34.       Target    This is the file to be created.
  35.       
  36.       Do NOT give source and target the same name.
  37.       
  38.       NOTE:  THERE ARE NO SCREEN WRITES WHILE THE PROGRAMS ARE ACTIVE.
  39.              In other words, be patient.  On my 33Mhz 386 with a 2Mb
  40.              cache, a 1 megabyte file takes 35 seconds to repair.
  41.       
  42. Both programs assume that the given character will be missing throughout the
  43. file.  They will not discern between a correctly delimitted line and an   
  44. incorrectly delimitted line.  I.E. half your file is missing ASCII 10 and half
  45. is not, then half your target file will have duplicated ASCII 10 codes.
  46.  
  47. If the data file was "streamed" to the file with no delimitter at all
  48. between records, you should use CUTIT to parse the records into 
  49. specifed lengths.  When CUTIT runs, it will automatically create the correct
  50. line delimitters (ASCII 13 followed by ASCII 10).
  51.  
  52. Fine you say, but George, what are these two codes you are babbling about?
  53. ASCII 10 (hex 0x0A) and ASCII 13 (hex 0x0D) form the end of a line in a DOS
  54. text file.  If 10 is missing, the file may appear to be correct when you view
  55. it with Vern Buerg's LIST or another viewer, but when you look at it in hex,
  56. using LIST's ALT-H command or a diskeditor, you can see that there is only one
  57. of the two codes.  If you look at this file right now, look for "0D 0A" in hex
  58. or look for what appears to be a music note followed by a solid square with a 
  59. hole in it.
  60.  
  61. Some programs will let you slide if you are missing one of two codes, some will
  62. not.  When in doubt, look at your source file using some form of editor or
  63. viewer that will allow you to see the source file in hex (Hexadecimal).
  64.  
  65. History:
  66.  
  67. v2.0  December 2, 1991
  68.  
  69.       The programs are now coded in Borland C++ and are an order of magnitude
  70.       faster than v1.0's QB based code.
  71.       All filenames are now specified at the command line in order to
  72.       facilitate batch processing.
  73.  
  74. v1.0  May 10, 1991
  75.       
  76.       Initial release.  Program coded in QB 4.5.  
  77.       What can I say - it met the needs at the time, but toooooo slow.
  78.  
  79. I hope this program helps you evaluate some of your problems
  80. or even makes some solutions/benefits clear.  
  81.  
  82. This program is shareware.  It is not Freeware or public domain.  This
  83. product costs $5 for each concurrently used copy.  Please register this
  84. software if you find it useful.  If you have any suggestions, I'd REALLY like
  85. to hear those too.
  86.  
  87.           Sincerely,
  88.  
  89.           George Spafford
  90.           3001 LakeShore Drive, #329
  91.           St. Joseph, MI 49085
  92.  
  93.          Data:  (616) 468-5026  Queued Access BBS 19200-8-N-1
  94.                 FIDO:  1:2340/0 NEC/NC site:  Tim Akright - Sysop.
  95.                 
  96.  
  97. And now for the unpleasantries:
  98.  
  99. THE LINEFIX PACKAGE IS DISTRIBUTED AS IS.  THE AUTHOR (GEORGE 
  100. SPAFFORD) MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR 
  101. IMPLIED, INCLUDING BUT NOT LIMITED TO TO WARRANTIES OF 
  102. MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, WITH 
  103. RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL 
  104. THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, 
  105. LOST SAVINGS, OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL 
  106. DAMAGES ARISING OUT OF THE USE OF OR THE INABILITY TO USE 
  107. THIS PACKAGE OF PROGRAMS.
  108. ---------------------------------------------------------------------------
  109.